import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path"
import legacy from '@vitejs/plugin-legacy'

// https://vitejs.dev/config/
export default defineConfig({
    base: './',
    plugins: [legacy({
        targets: ['defaults', 'not IE 11']
    }), vue()],
    build: {
        target: ['es2015', 'chrome63']
    },
    resolve: {
        alias: [
            {
                find: "@",
                replacement: path.resolve(__dirname, "src")
            }
        ]
    }
})
